#规格选项管理视图


#响应数据：　　
#
# {'id': '选项id'
# 'value'： '选项名称'
# 'options'{'规格id'
#             ' 规格名称'
# }
from rest_framework.viewsets import ModelViewSet

from goods.models import SpecificationOption
from meiduo_admin.serializers.specsoption import SpecificationOptionserializer


class specificationOptionviewset(ModelViewSet):
    queryset = SpecificationOption.objects.all()
    serializer_class = SpecificationOptionserializer